package com.zmc.product.infrastructure.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;

/**
 * 商品中心的类目表
 * 
 * @author zmc
 * @email 
 * @date 2024-10-14 18:43:35
 */
@Data
@TableName("commodity_category")
public class CommodityCategoryEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 类目名称
	 */
	private String name;
	/**
	 * 类目描述
	 */
	private String description;
	/**
	 * 父类目的主键
	 */
	private Long parentId;
	/**
	 * 是否为叶子类目，1：是，0：否
	 */
	private Integer isLeaf;
	/**
	 * 层级
	 */
	private Integer level;

	private Integer spuLimit;

	private Integer skuLimit;
	/**
	 * 排序
	 */
	private Integer orderNum;
	/**
	 *
	 */
	@TableField(value = "create_time", fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	@TableField(value = "create_by")
	private String createBy;

	@TableField(value = "update_time", fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;

	@TableField(value = "update_by")
	private String updateBy;

}
